<?php if (!defined('THINK_PATH')) exit();?>
	<div id="content-header">
		<div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>用户管理</a>
		 <a href="/index.php/Matrix/User/index" form-type='content'>用户列表</a> </div>
	</div>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
						<h5>数据列表</h5>
					</div>
					<div class="widget-content ">
						<div class="" style="height: 50px;">
							<!-- <div style="float: left;">
								<a href="#myAlert" data-toggle="modal">
									<button class="btn btn-danger">批量删除</button>
								</a>
							</div> -->
							<div style="float: right;">
								<form action="/index.php/Matrix/User/index" method="post" id="form1">
									<input type="hidden" name="table" value="1" /> 
									<input type="text" placeholder="账号" name="username" class="width_200px">&nbsp;
									<button class="y_btn yun_search" form-type="form-table" ><i class="icon-search icon-white"></i></button>
								</form>
							</div>
						</div>
						<div id="myAlert" class="modal hide" aria-hidden="true" style="display: none;">
							<div class="modal-header">
								<button data-dismiss="modal" class="close" type="button">×</button>
								<h3>批量删除</h3>
							</div>
							<div class="modal-body">
								<p>内容删除之后将不能够恢复，确定要做批量删除吗？</p>
							</div>
							<div class="modal-footer"> <a data-dismiss="modal" class="btn btn-primary data-del-all" href="/index.php/Matrix/User/foreverdelete">确定</a>
								<a data-dismiss="modal" class="btn" href="#">取消</a> </div>
						</div>
						
						<div id="table">
							
	<table class="table table-bordered table-striped with-check">
		<thead>
			<tr>
				<th>
					<input type="checkbox" id="title-table-checkbox" name="title-table-checkbox" />
				</th>
				<th width="30px">序号</th>
				<th>用户昵称</th>
				<th >邮箱</th>
				<th >qq</th>
				<th >电话</th>
				<!-- <th >头像</th> -->
				<th >用户状态</th>
			<!-- 	<th >到期时间</th> -->
				<th >注册时间</th>
				<th width="220px">禁止登录</th>
			</tr>
		</thead>
		<tbody>
			<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
					<td>
						<input type="checkbox" data='<?php echo ($v["id"]); ?>' />
					</td>
					<td>
						<div class="numerical">
							<?php echo ($key+1); ?>
						</div>
					</td>
					<td><?php echo ($v["username"]); ?></td>
					<th ><?php echo ($v["email"]); ?></th>
					<th ><?php echo ($v["qq"]); ?></th>
					<th ><?php echo ($v["phone"]); ?></th>
					<!-- <td><img width="40px" height="40px" alt="" src="/Public<?php echo ($v["headUrl"]); ?>"></td> -->
					<th ><?php if($v['status'] == 0): ?>正常<?php else: ?><span style="color:red">已禁止</span><?php endif; ?></th>
					<!-- <th ><?php if($v['end_time'] > 0): echo (date("Y-m-d H:i:s",$v["end_time"])); else: ?>未开通<?php endif; ?></th> -->
					<th ><?php echo (date("Y-m-d H:i:s",$v["createtime"])); ?></th>
					<td class="center">
							<a href="/index.php/Matrix/User/bean?id=<?php echo ($v["id"]); ?>" form-type='content'>
									<button class="btn btn btn-success operation">彩种到期时间</button>
							</a>
							<a href="/index.php/Matrix/User/update?id=<?php echo ($v["id"]); ?>" form-type='content'>
									<button class="btn btn btn-primary operation">恢复</button>
							</a>
							<a href="/index.php/Matrix/User/edit?id=<?php echo ($v["id"]); ?>" form-type='content'>
									<button class="btn btn btn-danger operation">禁止</button>
							</a>
					</td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		</tbody>
	</table>
	<div id="myAlert-bean" class="modal hide" aria-hidden="true" style="display: none;">
		<div class="modal-header">
			<button data-dismiss="modal" class="close" type="button">×</button>
			<h3>删除</h3>
		</div>
		<div class="modal-body">
			<p>内容删除之后将不能够恢复，确定要做删除吗？</p>
		</div>
		<div class="modal-footer"> <a data-dismiss="modal" class="btn btn-primary data-del-bean-alert" href="/index.php/Matrix/User/foreverdelete">确定</a>
			<a data-dismiss="modal" class="btn" href="#">取消</a> </div>
	</div>
	<!-- page -->
	<div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix">
	<div class="" style="float: left;" id="page-left-info">
		<div>当前第 <?php echo ($currentPage); ?> 页/ 共 <?php echo ($totalCount); ?> 条 / 共 <?php echo ($totalPage); ?> 页 跳转到 &nbsp;</div>
		<div>
			<input type="text" class="span2" id ="yun_page_skip_input" value="<?php echo ($currentPage); ?>">
		</div>
		<div><a href='<?php echo ($goPage); ?>&between_time_start=<?php echo ($between_time_start); ?>&between_time_end=<?php echo ($between_time_end); ?>' id = "yun_page_skip" sytle="font-size: 20px;" form-type="page-table"><i class="icon-circle-arrow-right"></i></a></div>
	</div>
	<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
		<?php echo ($page); ?>
	</div>
</div>



						</div>
					</div>
				</div>
			</div>
		</div>
	</div>